package com.competition.entity;

import javax.persistence.*;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "agricultural_training_detail")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AgriculturalTrainingDetail implements Serializable {

    @Id
    @Column(name = "training_detail_id")
    private String trainingDetailId;

    @Column(name = "training_detail_address")
    private String trainingDetailAddress;

    @Column(name = "training_detail_time")
    @Temporal(TemporalType.TIMESTAMP)
//    private Date trainingDetailTime;
    private String trainingDetailTime;

    @Column(name = "training_detail_type")
    private String trainingDetailType;

    @Column(name = "training_detail_introduce")
    private String trainingDetailIntroduce;

    @Column(name = "agricultural_training_id")
    private String agriculturalTrainingId;

    // Additional methods, if any, can be added here
    @TableField(exist = false)
    private AgriculturalTraining agriculturalTraining;

    // Additional methods, if any, can be added here
}
